<template>
  <div class="People">
    <div class="routerLink">
      <full></full>
      <!-- <div class="lock" @click="showPeople = !showPeople">抽奖名单</div> -->
      <div class="lock" @click="btnLock">去抽奖</div>
      <div class="lock" @click="btnLogin">登录</div>
    </div>
    <div class="PeopleContainer" v-show="showPeople">
      <div class="itemPeo">抽奖人员名单</div>
      <div class="item">
        <div class="Pcontainer" v-for="item in peoples" :key="item.id">
          <div class="left">{{ item.name }}</div>
          <div class="center">..........................</div>
          <div class="right">{{ item.id }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import PeopleData from './people'
import full from './full.vue'
export default {
  components: { full },
  data() {
    return {
      showPeople: true,
      peoples: PeopleData.peoples
    }
  },
  methods: {
    btnLock() {
      this.$router.push('/LuckDraw')
    },
    btnLogin() {
      this.$router.push('/login')
    }
  }
}
</script>
<style lang="scss">
.People {
  background-image: url('@/assets/main-bg.png');
  background-repeat: no-repeat; /* 不平铺。图片只展示一次。 */
  height: 100%;
  width: 100%;
  -moz-background-size: 100% 100%;
  background-size: 100% 100%;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-end;

  .PeopleContainer {
    margin-right: 30px;
    // background-color: yellow;
    margin-top: 30px;
    height: 800px;
    width: 336px;
    background-image: url('@/assets/renyuan-bg.png');
    background-repeat: no-repeat; /* 不平铺。图片只展示一次。 */
    -moz-background-size: 100% 100%;
    background-size: 100% 100%;
    .itemPeo {
      // margin: 40px 0 0 60px;
      margin-top: 40px;
      text-align: center;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      color: #f4d6a3;
      background: linear-gradient(0deg, #ffd179 0%, #ffffff 50%, #ffd387 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .item {
      margin: 0 60px;
      height: 700px;
      overflow: auto;
    }
    .item::-webkit-scrollbar {
      display: none;
    }
    .Pcontainer {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      color: #f4d6a3;
      height: 25px;
      line-height: 25px;
      margin-top: 5px;
      caret-color: transparent;
      cursor: pointer;
      .left {
        width: 25%;
      }
    }
  }
  .routerLink {
    display: flex;
    justify-content: flex-end;
    .lock {
      height: 30px;
      line-height: 30px;
      color: #efc799;
      border: 2px solid #efc799;
      margin-top: 20px;
      margin-right: 30px;
      cursor: pointer;
      caret-color: transparent;
      padding: 0 15px;
    }
  }
}
</style>
